# 返回函数 , 调用结果互不影响。
def test(*args):
    def sum():
        ax = 0
        for n in args:
            ax = ax + n
        return ax
    return sum

f_ = test(1,2,3,4,5,6,7,8,9,0)
d_ = test(1,2,3,4,5,6,7,8,9,0)
print(f_() == d_())
print(f_ == d_)

# 匿名函数
print(list(map(lambda x:x+x, [1,2,3,4,5,6,7,8,9,0,])))
print(list(filter(lambda n:n%2==1, range(1,20))))